package cloud.lysky.java.on.design_pattern.observer;

/**
 * @author luoly
 * @describe
 * @date 2022-08-20 11:19
 **/
public class App {
    public static void main(String[] args) {
        Feed f = new Feed();
        f.registerObserver(new NYTimes());
        f.registerObserver(new Guardian());
        f.registerObserver(new LeMonde());
        f.notifyObservers("The queen said her favourite book is Java 8 in Action!");
    }
}